/*
 * @file    numtochar.cpp
 * @author  edward <libo@tencent.com>
 * @date    2013-03-23
 * @brief   
 * */

#include "stdio.h"
#include <iostream>

void numtochar(long num) {
    if(num <10) {
        putchar(num + '0');
    } else {
        numtochar(num/10);
        putchar(num%10 + '0');
    }
    
}

int main()
{
    long num = 213123123123123423;
    numtochar(num); 
}

